/**
 * 相同点
 */
interface UserInterface3 {
  name: string,
  readonly gendar: string,
  age?: number,
  run: (n: number)=> void
}

type UserType = {
  name: string,
  readonly gendar: string,
  age?: number,
  run: (n: number)=> void
}

let user33: UserInterface3 = {
  name: "张三",
  gendar: "女",
  age: 17,
  run(n) {
    console.log(`跑了${n}圈`)
  }
}
let user43: UserType = {
  name: "张三",
  gendar: "女",
  age: 17,
  run(n) {
    console.log(`跑了${n}圈`)
  }
}

/**
 * 不同点
 */
type su = number | string
type a = {}
type b = {}
type sut = a & b
